package com.zyz.A_程序基础.B_运算.整数;

/**
 * @author: vick
 * @Date: 2025/3/10
 * @Description:
 * @version: 1.0
 */
public class Demo3 {
    public static void main(String[] args) {
        // ++ 在后
        int a = 33;
        a++; //34
        // ++在后，先运算，后自增
        int result = 100 + (a++); //134
        System.out.println(result);
        System.out.println(a); // 35

        System.out.println("=================");
        int a1 = 33;
        a1++; //34
        // ++在后，先自增，后运算
        int result1 = 100 + (++a1);
        System.out.println(result1); //135
        System.out.println(a1); // 35
    }
}
